package com.gs.xbinfomytest.entity;

import com.gitee.hengboy.mybatis.enhance.common.annotation.Column;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Id;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Table;
import com.gitee.hengboy.mybatis.enhance.common.enums.KeyGeneratorTypeEnum;
import lombok.Data;
import java.io.Serializable;

import java.sql.Timestamp;

/**
 * 部门表
 * @author ApiBoot Mybatis Enhance Codegen
 */
@Data
@Table(name = "sys_dept")
public class SysDept implements java.io.Serializable {

    /**
     * 部门id
     */
    @Id(generatorType = KeyGeneratorTypeEnum.AUTO)
    @Column(name = "dept_id")
    private Long deptId;
    /**
     * 父部门id
     */
    @Column(name = "parent_id")
    private Long parentId;
    /**
     * 祖级列表
     */
    @Column(name = "ancestors")
    private String ancestors;
    /**
     * 部门名称
     */
    @Column(name = "dept_name")
    private String deptName;
    /**
     * 显示顺序
     */
    @Column(name = "order_num")
    private Integer orderNum = 0;
    /**
     * 负责人
     */
    @Column(name = "leader")
    private String leader;
    /**
     * 联系电话
     */
    @Column(name = "phone")
    private String phone;
    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;
    /**
     * 部门状态（0正常 1停用）
     */
    @Column(name = "status")
    private String status = "0";
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @Column(name = "del_flag")
    private String delFlag = "0";
    /**
     * 创建者
     */
    @Column(name = "create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Timestamp createTime;
    /**
     * 更新者
     */
    @Column(name = "update_by")
    private String updateBy;
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Timestamp updateTime;
}

